package cn.edu.zafu.bigdata.x.wgj.b;

public class course {
    private String coursename;
    private String coursecode;
    private String teacher;
    private int credits;
    public course(String courseName, String courseCode, String teacher, int credits) {
        this.coursename = courseName;
        this.coursecode = courseCode;
        this.teacher = teacher;
        this.credits = credits;
    }
    public void printInfo() {
        System.out.println("课程名: " + coursename);
        System.out.println("课程代码: " + coursecode);
        System.out.println("授课教师: " + teacher);
        System.out.println("学分: " + credits);
    }
    public static void main(String[] args) {
        course course1 = new course("数据结构与算法", "CS101", "吴教授",3);
        course1.printInfo();
    }
}
